package cn.school.system.service.impl;

import java.util.List;

import cn.school.system.model.resp.UserPaperExtractListRespDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.school.system.mapper.BiExtractPaperMapper;
import cn.school.system.domain.BiExtractPaper;
import cn.school.system.service.IBiExtractPaperService;

/**
 * 抽取的纸条信息Service业务层处理
 *
 * @author ruoyi
 * @date 2023-12-26
 */
@Service
public class BiExtractPaperServiceImpl implements IBiExtractPaperService
{
    @Autowired
    private BiExtractPaperMapper biExtractPaperMapper;

    /**
     * 查询抽取的纸条信息
     *
     * @param id 抽取的纸条信息主键
     * @return 抽取的纸条信息
     */
    @Override
    public UserPaperExtractListRespDTO selectBiExtractPaperById(Long id)
    {
        return biExtractPaperMapper.selectBiExtractPaperById(id);
    }

    /**
     * 查询抽取的纸条信息列表
     *
     * @param biExtractPaper 抽取的纸条信息
     * @return 抽取的纸条信息
     */
    @Override
    public List<BiExtractPaper> selectBiExtractPaperList(BiExtractPaper biExtractPaper)
    {
        return biExtractPaperMapper.selectBiExtractPaperList(biExtractPaper);
    }

    /**
     * 新增抽取的纸条信息
     *
     * @param biExtractPaper 抽取的纸条信息
     * @return 结果
     */
    @Override
    public int insertBiExtractPaper(BiExtractPaper biExtractPaper)
    {
        return biExtractPaperMapper.insertBiExtractPaper(biExtractPaper);
    }

    /**
     * 修改抽取的纸条信息
     *
     * @param biExtractPaper 抽取的纸条信息
     * @return 结果
     */
    @Override
    public int updateBiExtractPaper(BiExtractPaper biExtractPaper)
    {
        return biExtractPaperMapper.updateBiExtractPaper(biExtractPaper);
    }

    /**
     * 批量删除抽取的纸条信息
     *
     * @param ids 需要删除的抽取的纸条信息主键
     * @return 结果
     */
    @Override
    public int deleteBiExtractPaperByIds(Long[] ids)
    {
        return biExtractPaperMapper.deleteBiExtractPaperByIds(ids);
    }

    /**
     * 删除抽取的纸条信息信息
     *
     * @param id 抽取的纸条信息主键
     * @return 结果
     */
    @Override
    public int deleteBiExtractPaperById(Long id)
    {
        return biExtractPaperMapper.deleteBiExtractPaperById(id);
    }

    @Override
    public List<UserPaperExtractListRespDTO> selectBiExtractPaperListByOpenid(String openid) {
        return biExtractPaperMapper.selectBiExtractPaperListByOpenid(openid);
    }

    @Override
    public int insertBiExtractPaperList(List<BiExtractPaper> extractPaperList) {
        return biExtractPaperMapper.insertBiExtractPaperList(extractPaperList);
    }
}
